<?php
/*
Description: This file is used to change login paassword.
*/
#########IncludeFiles####################################################################################
include_once '../inc/config.php';
include_once("../inc/bootstrape.php");
require_once _SITE_PATH_.'classes/Vendor/Vendor.php';
require_once _SITE_PATH_.'classes/Honeymoon/Honeymoon.php';
require_once _SITE_PATH_.'classes/CommonUtility/CommonUtility.php';

//	END CHANGE PASSWORD CODE	//
$errMsg = $_GET['err'];
$action = trim($_REQUEST['action']);
$id = trim($_REQUEST['id']); 
if(empty($id)){
    header("Location: "._SITE_ADMIN_URL_."honeymoon-package/honeymoon_type_mng.php");
    exit;
}

if(isset($_POST['submit'])){
    $parms['title'] = $_POST['title'];
    $parms['description'] = $_POST['description'];
    
    $condition = array(); 
    $condition['id'] = $id;
    if( CommonUtility::updateData($parms, 'honeymoon_type_master', $condition)) {        
        header("Location: honeymoon_type_mng.php?msg=1014");            
        exit;
    }
    $errMsg = 1015;    
}
if( $errMsg ){
    $result = $_POST;
    
}else{
    $result = CommonUtility::getDataById($id, 'honeymoon_type_master');    
}

$_tplName = 'honeymoon-package/honeymoon_type_edit.tpl';
$_title = 'Edit Package Type';
require_once _ADMIN_TPL_MAIN_;
?>